import request from '@/utils/request'

//查询老师列表
export function listTeacherManagement() {
  return request({
    url: '/teacher/teacherManagement/list',
    method: 'get',
  })
}
// 查询月度数据列表
export function listMonthData(query) {
  return request({
    url: '/performance/monthData/list',
    method: 'get',
    params: query
  })
}

// 查询月度数据详细
export function getMonthData(id) {
  return request({
    url: '/performance/monthData/' + id,
    method: 'get'
  })
}

// 新增月度数据
export function addMonthData(data) {
  return request({
    url: '/performance/monthData',
    method: 'post',
    data: data
  })
}

// 修改月度数据
export function updateMonthData(data) {
  return request({
    url: '/performance/monthData',
    method: 'put',
    data: data
  })
}

// 删除月度数据
export function delMonthData(id) {
  return request({
    url: '/performance/monthData/' + id,
    method: 'delete'
  })
}
